<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>配餐配货管理-配餐管理</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link href="/apply_assets/css/bootstrap.min.css" rel="stylesheet">
	<link href="/apply_assets/css/style.css" rel="stylesheet">
	<link href="/apply_assets/css/font-awesome.css" rel="stylesheet">
</head>
<body>
	<div class="container-fluid">
		<div class="om-ctl-mes">
			<div class="title">
				<div class="col-xs-12"><span class="fa fa-list-ul"> 配餐/配货管理</span><b class="fa fa-caret-right"></b><i>配餐管理</i></div>
			</div>
      <div class="seltemple">
        <div class="col-xs-12">
          <form class="form-inline"  method="post" action="/admin_cater">
          <div class="col-xs-3 mes-group"><label>部门</label><select name='department' id="department"><option value=''>请选择</option><?foreach ($tDIDatas as $key => $Datas) {?>
            <option value="<?=$Datas['num']?>" <?if ($department==$Datas['num']){echo "selected";}?>><?=$Datas['introduce']?></option>
          <?}?></select></div>

           <div class="col-xs-3 peican-time"><label>配餐时间</label><input type="text" placeholder="开始时间" readonly="readonly" name="catertime"  onclick="WdatePicker();" value="<?=$catetime?>"><span></span><input type="text" placeholder="结束时间" readonly="readonly" name="endtinme"  onclick="WdatePicker();" value="<?=$endtime?>"></div>  

          <div class="col-xs-3 mes-btn off-btn"><button type="button" onclick="cateradd(window.location='admin_cater/add')">新增配餐</button><button id="search" type='button'>搜索</button></div>
        </form>
        </div>
      </div>

            <div class="personset-content col-xs-12">
                <div id="personset-tab-list" class="col-xs-2">
                    <?foreach ($tCIDatas as $key => $Datas) {?>
                      <span><?=$Datas['week']?><br><?=$Datas['catertime']?></span>
                    <?}?>
              </div>
              <div id="personset-tab-content" class="col-xs-10">
                <?foreach ($tCIDatas as $key => $Datas) {?>
                    <div>
                      <table class="table table-bordered">
                      <thead>
                        <tr>
                          <th>早上配餐</th>
                          <th>中午配餐</th>
                          <th>晚上配餐</th>
                          <th>其他配餐</th>
                        </tr>
                     </thead>
                     <tbody>
                       <tr>
                         <td>
                          <?foreach ($Datas['breakfast'] as $key => $val) {?>
                            <span><?=$val?></span>
                          <?}?></td><td>
                          <?foreach ($Datas['lunch'] as $key => $val) {?>
                            <span><?=$val?></span>
                          <?}?></td><td>
                          <?foreach ($Datas['dinner'] as $key => $val) {?>
                            <span><?=$val?></span>
                          <?}?></td><td>
                          <?foreach ($Datas['other'] as $key => $val) {?>
                            <span><?=$val?></span>
                          <?}?></td>
                        <tr>
                        <?if($STATUS==2){?>
                       <tr>
                         <td>
                          <?foreach ($Datas['breakfast_picrute'] as $key => $val) {?>
                            <span><img src="<?=$Datas['url']?><?=$val?>" alt="" height="50" width="70"></span>
                          <?}?></td><td>
                          <?foreach ($Datas['lunch_picrute'] as $key => $val) {?>
                            <span><img src="<?=$Datas['url']?><?=$val?>" alt="" height="50" width="70"></span>
                          <?}?></td><td>
                          <?foreach ($Datas['dinner_picrute'] as $key => $val) {?>
                            <span><img src="<?=$Datas['url']?><?=$val?>" alt="" height="50" width="70"></span>
                          <?}?></td><td>
                          <?foreach ($Datas['other_picture'] as $key => $val) {?>
                            <span><img src="<?=$Datas['url']?><?=$val?>" alt="" height="50" width="70"></span>
                          <?}?></td>
                        <tr>
                       <?}?>
                     </tbody>
                 </table>
                  </div>
                    <?}?>
               </div>      
		</div>	
    </div>
  </div>
    <script type="text/javascript" src="/apply_assets/js/jquery.min.js"></script>
     <script type="text/javascript" src="/apply_assets/js/personset-jq.js"></script>
       <script type="text/javascript" src="/plugins/datepicker/WdatePicker.js" charset="UTF-8"></script>
    <script>
    $('#search').click(function(){
		$('form').submit();
	});
    function cateradd(){}
    </script>
</body>
</html>